
<div class="forum-container">

    <ul class="thumbnails">

        <g:each var="course" in="${courses}">

            <li class="thumbnail span11">


                <div class="course-threads">

                    <h4>
                        <a href="${createLink(controller: 'courses', action: 'view', params: [id: course.id])}">${course.name} </a>
                        <small>${course.description}</small>
                    </h4>

                    <g:message code="forum.threads.label" />: <span class="badge badge-info">${course.threads.size()}</span><br />
                    %{--<g:message code="forum.posts.label" />: <span class="badge badge-info"><g:if test="${course.threads}">${course.threads.sum { it.posts.size() }}</g:if><g:else>0</g:else> </span>--}%

                </div>

            </li>

        </g:each>

        <g:message code="forum.courses.label" />: <span class="badge badge-success">${courses.size()}</span><br />

    </ul>

</div>


